package com.ct.ah.lab.service;

import com.ct.ah.lab.entity.PageRecord;
import com.ct.ah.lab.entity.Product;

import java.util.List;

public interface IProductService {
    public Product getById(Integer id);
    public PageRecord<List<Product>> listAllByCid(Integer cid, Integer currentPage, Integer pageSize);

    public PageRecord<List<Product>> listAllByPname(String Pname, Integer currentPage, Integer pageSize);
    public PageRecord<List<Product>> listAllByPnames(List<String> nameList, Integer currentPage, Integer pageSize);
    public List<Product> getRandomProducts();
    public List<Product> getHotProducts();
}
